package mfund.com.model;

import java.util.ArrayList;
import java.util.List;

public class TProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProductIdIsNull() {
            addCriterion("product_id is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("product_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("product_id =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("product_id <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("product_id >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_id >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("product_id <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("product_id <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("product_id in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("product_id not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("product_id between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("product_id not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNull() {
            addCriterion("product_name is null");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNotNull() {
            addCriterion("product_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductNameEqualTo(String value) {
            addCriterion("product_name =", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotEqualTo(String value) {
            addCriterion("product_name <>", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThan(String value) {
            addCriterion("product_name >", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_name >=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThan(String value) {
            addCriterion("product_name <", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThanOrEqualTo(String value) {
            addCriterion("product_name <=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLike(String value) {
            addCriterion("product_name like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotLike(String value) {
            addCriterion("product_name not like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameIn(List<String> values) {
            addCriterion("product_name in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotIn(List<String> values) {
            addCriterion("product_name not in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameBetween(String value1, String value2) {
            addCriterion("product_name between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotBetween(String value1, String value2) {
            addCriterion("product_name not between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andIssueDateIsNull() {
            addCriterion("issue_date is null");
            return (Criteria) this;
        }

        public Criteria andIssueDateIsNotNull() {
            addCriterion("issue_date is not null");
            return (Criteria) this;
        }

        public Criteria andIssueDateEqualTo(String value) {
            addCriterion("issue_date =", value, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateNotEqualTo(String value) {
            addCriterion("issue_date <>", value, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateGreaterThan(String value) {
            addCriterion("issue_date >", value, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateGreaterThanOrEqualTo(String value) {
            addCriterion("issue_date >=", value, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateLessThan(String value) {
            addCriterion("issue_date <", value, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateLessThanOrEqualTo(String value) {
            addCriterion("issue_date <=", value, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateLike(String value) {
            addCriterion("issue_date like", value, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateNotLike(String value) {
            addCriterion("issue_date not like", value, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateIn(List<String> values) {
            addCriterion("issue_date in", values, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateNotIn(List<String> values) {
            addCriterion("issue_date not in", values, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateBetween(String value1, String value2) {
            addCriterion("issue_date between", value1, value2, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIssueDateNotBetween(String value1, String value2) {
            addCriterion("issue_date not between", value1, value2, "issueDate");
            return (Criteria) this;
        }

        public Criteria andIvestScopeIsNull() {
            addCriterion("ivest_scope is null");
            return (Criteria) this;
        }

        public Criteria andIvestScopeIsNotNull() {
            addCriterion("ivest_scope is not null");
            return (Criteria) this;
        }

        public Criteria andIvestScopeEqualTo(String value) {
            addCriterion("ivest_scope =", value, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeNotEqualTo(String value) {
            addCriterion("ivest_scope <>", value, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeGreaterThan(String value) {
            addCriterion("ivest_scope >", value, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeGreaterThanOrEqualTo(String value) {
            addCriterion("ivest_scope >=", value, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeLessThan(String value) {
            addCriterion("ivest_scope <", value, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeLessThanOrEqualTo(String value) {
            addCriterion("ivest_scope <=", value, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeLike(String value) {
            addCriterion("ivest_scope like", value, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeNotLike(String value) {
            addCriterion("ivest_scope not like", value, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeIn(List<String> values) {
            addCriterion("ivest_scope in", values, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeNotIn(List<String> values) {
            addCriterion("ivest_scope not in", values, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeBetween(String value1, String value2) {
            addCriterion("ivest_scope between", value1, value2, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andIvestScopeNotBetween(String value1, String value2) {
            addCriterion("ivest_scope not between", value1, value2, "ivestScope");
            return (Criteria) this;
        }

        public Criteria andProductTermIsNull() {
            addCriterion("product_term is null");
            return (Criteria) this;
        }

        public Criteria andProductTermIsNotNull() {
            addCriterion("product_term is not null");
            return (Criteria) this;
        }

        public Criteria andProductTermEqualTo(String value) {
            addCriterion("product_term =", value, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermNotEqualTo(String value) {
            addCriterion("product_term <>", value, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermGreaterThan(String value) {
            addCriterion("product_term >", value, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermGreaterThanOrEqualTo(String value) {
            addCriterion("product_term >=", value, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermLessThan(String value) {
            addCriterion("product_term <", value, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermLessThanOrEqualTo(String value) {
            addCriterion("product_term <=", value, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermLike(String value) {
            addCriterion("product_term like", value, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermNotLike(String value) {
            addCriterion("product_term not like", value, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermIn(List<String> values) {
            addCriterion("product_term in", values, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermNotIn(List<String> values) {
            addCriterion("product_term not in", values, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermBetween(String value1, String value2) {
            addCriterion("product_term between", value1, value2, "productTerm");
            return (Criteria) this;
        }

        public Criteria andProductTermNotBetween(String value1, String value2) {
            addCriterion("product_term not between", value1, value2, "productTerm");
            return (Criteria) this;
        }

        public Criteria andHostCompanyIsNull() {
            addCriterion("host_company is null");
            return (Criteria) this;
        }

        public Criteria andHostCompanyIsNotNull() {
            addCriterion("host_company is not null");
            return (Criteria) this;
        }

        public Criteria andHostCompanyEqualTo(String value) {
            addCriterion("host_company =", value, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyNotEqualTo(String value) {
            addCriterion("host_company <>", value, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyGreaterThan(String value) {
            addCriterion("host_company >", value, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyGreaterThanOrEqualTo(String value) {
            addCriterion("host_company >=", value, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyLessThan(String value) {
            addCriterion("host_company <", value, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyLessThanOrEqualTo(String value) {
            addCriterion("host_company <=", value, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyLike(String value) {
            addCriterion("host_company like", value, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyNotLike(String value) {
            addCriterion("host_company not like", value, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyIn(List<String> values) {
            addCriterion("host_company in", values, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyNotIn(List<String> values) {
            addCriterion("host_company not in", values, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyBetween(String value1, String value2) {
            addCriterion("host_company between", value1, value2, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andHostCompanyNotBetween(String value1, String value2) {
            addCriterion("host_company not between", value1, value2, "hostCompany");
            return (Criteria) this;
        }

        public Criteria andBackServiceIsNull() {
            addCriterion("back_service is null");
            return (Criteria) this;
        }

        public Criteria andBackServiceIsNotNull() {
            addCriterion("back_service is not null");
            return (Criteria) this;
        }

        public Criteria andBackServiceEqualTo(String value) {
            addCriterion("back_service =", value, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceNotEqualTo(String value) {
            addCriterion("back_service <>", value, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceGreaterThan(String value) {
            addCriterion("back_service >", value, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceGreaterThanOrEqualTo(String value) {
            addCriterion("back_service >=", value, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceLessThan(String value) {
            addCriterion("back_service <", value, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceLessThanOrEqualTo(String value) {
            addCriterion("back_service <=", value, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceLike(String value) {
            addCriterion("back_service like", value, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceNotLike(String value) {
            addCriterion("back_service not like", value, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceIn(List<String> values) {
            addCriterion("back_service in", values, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceNotIn(List<String> values) {
            addCriterion("back_service not in", values, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceBetween(String value1, String value2) {
            addCriterion("back_service between", value1, value2, "backService");
            return (Criteria) this;
        }

        public Criteria andBackServiceNotBetween(String value1, String value2) {
            addCriterion("back_service not between", value1, value2, "backService");
            return (Criteria) this;
        }

        public Criteria andFeaturesIsNull() {
            addCriterion("features is null");
            return (Criteria) this;
        }

        public Criteria andFeaturesIsNotNull() {
            addCriterion("features is not null");
            return (Criteria) this;
        }

        public Criteria andFeaturesEqualTo(String value) {
            addCriterion("features =", value, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesNotEqualTo(String value) {
            addCriterion("features <>", value, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesGreaterThan(String value) {
            addCriterion("features >", value, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesGreaterThanOrEqualTo(String value) {
            addCriterion("features >=", value, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesLessThan(String value) {
            addCriterion("features <", value, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesLessThanOrEqualTo(String value) {
            addCriterion("features <=", value, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesLike(String value) {
            addCriterion("features like", value, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesNotLike(String value) {
            addCriterion("features not like", value, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesIn(List<String> values) {
            addCriterion("features in", values, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesNotIn(List<String> values) {
            addCriterion("features not in", values, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesBetween(String value1, String value2) {
            addCriterion("features between", value1, value2, "features");
            return (Criteria) this;
        }

        public Criteria andFeaturesNotBetween(String value1, String value2) {
            addCriterion("features not between", value1, value2, "features");
            return (Criteria) this;
        }

        public Criteria andResIsNull() {
            addCriterion("res is null");
            return (Criteria) this;
        }

        public Criteria andResIsNotNull() {
            addCriterion("res is not null");
            return (Criteria) this;
        }

        public Criteria andResEqualTo(String value) {
            addCriterion("res =", value, "res");
            return (Criteria) this;
        }

        public Criteria andResNotEqualTo(String value) {
            addCriterion("res <>", value, "res");
            return (Criteria) this;
        }

        public Criteria andResGreaterThan(String value) {
            addCriterion("res >", value, "res");
            return (Criteria) this;
        }

        public Criteria andResGreaterThanOrEqualTo(String value) {
            addCriterion("res >=", value, "res");
            return (Criteria) this;
        }

        public Criteria andResLessThan(String value) {
            addCriterion("res <", value, "res");
            return (Criteria) this;
        }

        public Criteria andResLessThanOrEqualTo(String value) {
            addCriterion("res <=", value, "res");
            return (Criteria) this;
        }

        public Criteria andResLike(String value) {
            addCriterion("res like", value, "res");
            return (Criteria) this;
        }

        public Criteria andResNotLike(String value) {
            addCriterion("res not like", value, "res");
            return (Criteria) this;
        }

        public Criteria andResIn(List<String> values) {
            addCriterion("res in", values, "res");
            return (Criteria) this;
        }

        public Criteria andResNotIn(List<String> values) {
            addCriterion("res not in", values, "res");
            return (Criteria) this;
        }

        public Criteria andResBetween(String value1, String value2) {
            addCriterion("res between", value1, value2, "res");
            return (Criteria) this;
        }

        public Criteria andResNotBetween(String value1, String value2) {
            addCriterion("res not between", value1, value2, "res");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}